<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
        .container{
            width: 500px;
            height: 200px;
            background-color: skyblue;
            display: flex;
        }
        .container div {
            width: 600px;
            height: 100px;
            background: pink;
            
            flex-shrink: 0.5;
            /* flex-shrink: 0; */
        }
        /* flex-shrink : 表示flex容器空间不足的时候，子项的缩小比例 */
        /* 默认值为1, 如果子元素超出了父元素，自动收缩到和容器一样大*/
        /* 如果写0， 不收缩, 按正常宽度渲染 */
        /* 本来溢出了100px  ==> 50px  */
    </style>
</head>
<body>
    <div class="container">
        <div class="item">1</div>
    </div>
</body>
</html>